﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mayn.Video
{
    public class SysLogDal : BaseDal<SysLog>
    {
        /// <summary>
        /// 系统日志写入
        /// </summary>
        /// <param name="ent">系统日志表实体</param>
        /// <returns>返回是否写入成功</returns>
        public int WriteSysLog(string moduleCode,string moduleName,string title,string info,string remark,string actionType)
        {
            string sql = string.Format("insert into SYS_LOG(ID,MODULECODE,MODULENAME,ACTIONTYPE,MARK,TITLE,INFO) values (UPPER(REPLACE(uuid(),'-','')),'{0}','{1}','{2}','{3}','{4}','{5}')", moduleCode, moduleName, actionType, remark,title, info);
            return sql.Execute();
        }
    }
}
